package com.hotel.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Yu {
    Long id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date indate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date outdate;
    String name;
    String phone;
    int room;

    public Yu() {
    }

    public Yu(Long id, Date indate, Date outdate, String name, String phone, int room) {
        this.id = id;
        this.indate = indate;
        this.outdate = outdate;
        this.name = name;
        this.phone = phone;
        this.room = room;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getIndate() {
        return indate;
    }

    public void setIndate(Date indate) {
        this.indate = indate;
    }

    public Date getOutdate() {
        return outdate;
    }

    public void setOutdate(Date outdate) {
        this.outdate = outdate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getRoom() {
        return room;
    }

    public void setRoom(int room) {
        this.room = room;
    }
}
